package com.nms.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 地址类
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name="t_location")
public class Location {

	private String id;
	/**  国家*/
	private String country;
	/**  省份（州）*/
	private String province;
	/**  市（地区市）*/
	private String city;
	/**  县（区或县级市）*/
	private String county;
	/**  镇*/
	private String town;
	
	@Id
	@Column(length=64)
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="uuid")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column
	public String getCountry() {
		return country;
	}
	
	public void setCountry(String country) {
		this.country = country;
	}
	
	@Column
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	@Column
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	@Column
	public String getCounty() {
		return county;
	}
	public void setCounty(String county) {
		this.county = county;
	}
	@Column
	public String getTown() {
		return town;
	}
	public void setTown(String town) {
		this.town = town;
	}
}
